<template>
  <div id="app">
    <router-view></router-view>
    <FooterGuide v-if="$route.meta.showFooter"/>
  </div>
</template>

<script>
import FooterGuide from './components/FooterGuide/FooterGuide'
import {mapActions} from 'vuex'
export default {
  components: {
    FooterGuide
  },
  name: 'App',
  data () {
    return {
    }
  },
  methods: {
    ...mapActions(['getAddress'])

  },
  mounted () {
    this.getAddress()
    /*
    const result = await reqFoodCategorys()
    console.log(result)
    console.log(result.data)
    console.log(this.reqFoodCategorys())
    this.$store.dispatch('getAddress')
    */
  }
}
</script>

<style lang="stylus" type="text/stylus" ref="stylesheet/stylus">
.app
  width 100%
  height 100%
  background #f5f5f5
</style>
